package com.binance.notification.data.mapper;

import com.binance.master.annotations.DefaultDB;
import com.binance.notification.data.models.MessagePush;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author lufei
 * @date 2018/11/5
 */
@DefaultDB
public interface MessagePushMapper {

    Integer save(MessagePush mp);

    Integer update(MessagePush mp);

    MessagePush getById(@Param("id") Long id);

    List<MessagePush> selectByCondition(Map<String, Object> param);

    Long selectCountByCondition(Map<String, Object> param);

}
